package com.buaa.pm.controller;

import com.buaa.pm.model.ResultModel;
import com.buaa.pm.model.vo.ExtractResultVO;
import com.buaa.pm.model.vo.MarkedRecordVO;
import com.buaa.pm.service.MarkedRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/marked")
public class MarkedController {
    @Autowired
    private MarkedRecordService markedRecordService;

    @GetMapping("/list-all")
    public ResultModel<List<MarkedRecordVO>> listAll() {
        return ResultModel.success(markedRecordService.listMarkedRecordAll());
    }
}
